﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace TodoApp.TMS_settlement.Inputs
{
    /// <summary>
    /// 进项发票-张笑宇
    /// </summary>
    public class TMS_Input : BasicAggregateRoot<Guid>
    {
        /// <summary>
        /// 开票单位
        /// </summary>
        [Required(ErrorMessage = ("开票单位不能为空"))]
        [StringLength(20)]
        public string Input_Company { get; set; }
        /// <summary>
        /// 发票类型
        /// </summary>
        [Required(ErrorMessage = ("发票类型不能为空"))]
        [StringLength(20)]
        public string Input_InvoiceType { get; set; }
        /// <summary>
        /// 发票金额
        /// </summary>
        [Required(ErrorMessage = ("发票金额不能为空"))]
        public decimal Input_InvoiceAmount { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        [Required(ErrorMessage = ("税率不能为空"))]
        public decimal Input_Rate { get; set; }
        /// <summary>
        /// 税额
        /// </summary>
        public decimal Input_Tax { get; set; }
        /// <summary>
        /// 开票日期
        /// </summary>
        [Required(ErrorMessage = ("开票日期不能为空"))]
        public DateTime Input_Date { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(100)]
        public string Input_Note { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        [StringLength(150)]
        public string Input_MakingPeople { get; set; }
        /// <summary>
        /// 删除
        /// </summary>
        public bool Input_Delete { get; set; } = true;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Input_DateTime { get; set; } = DateTime.Now;
    }
}
